﻿using Newtonsoft.Json;

namespace Discord.Param;

/// <summary>
/// 上传调用参数
/// </summary>
public class UploadParam
{
    /// <summary>
    /// 文件列表
    /// </summary>
    [JsonProperty(PropertyName = "files")]
    public List<UploadInfo> FileList { get; set; } = new ();
}

public class UploadInfo
{
    /// <summary>
    /// 文件名
    /// </summary>
    [JsonProperty(PropertyName = "filename")]
    public string FileName { get; set; } = "";

    /// <summary>
    /// 文件大小
    /// </summary>
    [JsonProperty(PropertyName = "file_size")]
    public int FileSize { get; set; }

    /// <summary>
    /// 文件大小
    /// </summary>
    [JsonProperty(PropertyName = "id")]
    public string Id { get; set; } = "0";
}